package com.jeff.android.lab.android.lifecycle.lifecycle;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.OnLifecycleEvent;

import com.jeff.utils.LogUtil;

public class Java7LifecycleObserver implements androidx.lifecycle.LifecycleObserver {

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    void onCreate() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onCreate");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    void onStart() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onStart");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    void onResume() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onResume");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    void onPause() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onPause");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    void onStop() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onStop");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void onDestroy() {
        LogUtil.d("dingfeng", "Java7LifecycleObserver onDestroy");
    }

}
